<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head  th:include="common">
    <title th:remove="all" th:text="${model.title}"></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div>
    <table cellPadding="0" align="center" class="fb_add" border="0" cellSpacing="0">
        <caption align="center"><div class="add_title" th:text="${model.title}" ></div></caption>
        <thead>
            <tr class="result_head">
                <th ><div align="center" >&nbsp;索引名&nbsp;</div></th>
                <th ><div align="center" >&nbsp;项目名&nbsp;</div></th>
                <th ><div align="center" >&nbsp;数据源数量&nbsp;</div></th>
                <th ><div align="center" >&nbsp;cloud中的数量&nbsp;</div></th>
                <th ><div align="center" >&nbsp;对应数据库有效数量&nbsp;</div></th>
                <th ><div align="center" >&nbsp;cloud与数据库有效数量差值&nbsp;</div></th>
                <th ><div align="center" >&nbsp;无效数量占比&nbsp;</div></th>
                <th ><div align="center" >&nbsp;数据库中有效数量&nbsp;</div></th>


            </tr>
        </thead>
        <tbody th:if ="${model != null}">
                <tr th:each="dto,iterStat : ${model.countDtos}" th:class ="${iterStat.odd}? 'result_content':'result_content_bak'">
                    <td  align="center" th:text="${dto.indexName}"></td>
                    <td  align="center" th:text="${dto.projectName}"></td>
                    <td  align="center" th:text="${dto.datasourceNum}"></td>
                    <td  align="center" th:text="${dto.storageObjectNum}"></td>
                    <td  align="center" th:text="${dto.storageObjectInDbNum}"></td>
                    <td  align="center" th:text="${dto.differences}"></td>
                    <td  align="center" th:text="${dto.unUsedProportion}"></td>
                    <td  align="center" th:text="${dto.unDeleteNumInDb}"></td>
                </tr>
                <tr class = "result_content">
                    <td align="center" th:text="合计"></td>
                    <td ></td>
                    <td ></td>
                    <td align="center" th:text="${model.storageObjectTotal}"></td>
                    <td align="center" th:text="${model.storageObjectInDbTotal}"></td>
                    <td align="center" th:text="${model.differencesTotal}"></td>
                    <td align="center" th:text="${model.unUsedProportionTotal}"></td>
                    <td align="center" th:text="${model.unDeleteTotalInDb}"></td>
                </tr>
        </tbody>
    </table>

</div>
</body>
</html>